Fix security vulnerabilities across Terraform modules and Docker Compose configs - #3
Merged
Merged
Conversation
…coded creds, debug mode, PITR Co-authored-by: enturesting <[email protected]> Agent-Logs-Url: https://github.com/enturesting/cloudsimulation_localstack/sessions/5edf1808-f385-4742-b793-6476648013a4
Copilot
AI
changed the title
[WIP] Fix all security vulnerabilities in the repository
Fix security vulnerabilities across Terraform modules and Docker Compose configs
Mar 22, 2026
enturesting
approved these changes
Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several high-severity security misconfigurations across VPC, API Gateway, IAM, DynamoDB modules, and Docker Compose files. Changes address hardcoded credentials, overly permissive network rules, missing authorization, wildcard IAM resources, and lack of backup configuration.
VPC (
modules/vpc/v0.1.0,v0.2.0)0.0.0.0/0→var.cidr_block(VPC-internal only)map_public_ip_on_launch = falseon public subnetsAPI Gateway (
modules/api_gateway/v0.1.0,v0.2.0)authorization = "NONE"with a configurablevar.authorizationvariable defaulting to"AWS_IAM"IAM (
environments/main.tf)"*"→module.dynamodb_table.table_arn"arn:aws:logs:*:*:*"→ specific Lambda log group ARN usingvar.account_idandvar.lambda_function_nameDynamoDB (
modules/dynamodb/v0.1.0,v0.2.0)point_in_time_recovery { enabled = true })Docker Compose (
docker-compose.enhanced.yml,docker-compose.test.yml)develop-key,nonprod-key, etc.) with env var references:${DEVELOP_AWS_ACCESS_KEY_ID:-test}DEBUG=1→${LOCALSTACK_DEBUG:-0}across all services📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.